package global

import (
	"github.com/micro/go-micro/v2/registry"
	"github.com/micro/go-plugins/registry/consul/v2"
	"gorm.io/gorm"
)

var (
	MyConfig interface{}
	//数据库链接
	DB *gorm.DB
	//配置中心链接
	MyConfigClient = GetConsulConfig("127.0.0.1", 8500, "/my/config")
	//consul链接
	ConsulClient = consul.NewRegistry(registry.Addrs("127.0.0.1:8500"))

	NacosNamingClient = GetNacosNamingClient()

	NacosConfigClient = GetNacosConfigClient()
)
